package com.guigu.controller;

import com.guigu.pojo.TUser;
import com.guigu.service.TuserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class loginController {

    @Resource
    private TuserService tuserService;

    @PostMapping("/login")
    public TUser login( @RequestBody TUser tUser){
        return this.tuserService.login(tUser);
    }
}
